//package com.allwees.bs.c.module.order.context.util;
//
//import com.allwees.bs.c.module.order.annotation.ValidateUser;
//import com.allwees.bs.c.module.order.entity.OrderItemEntity;
//import com.allwees.bs.core.model.useraction.bo.ActionLogDTO;
//import com.allwees.bs.core.model.useraction.constant.EActionType;
//import com.allwees.core.common.util.http.RequestUtil;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//
///**
// *
// *
// * @author yangylsky
// * @since 2020-03-28
// *
// */
//@Slf4j
//@Component
//public class RefundLogActionUtil {
//
//	@ValidateUser
//	public  void logAction(OrderItemEntity orderItem,Integer isInfluencer) {
//		try {
//	        new ActionLogDTO().setUaType(EActionType.SKU_UNSHIPPED_REFUND)
//				.setPlatformAmt(orderItem.getPlatformAmtSku())
//				.setIsInfluencer(isInfluencer)
//				.setAmtCash(orderItem.getAmtCashSku())
//	        	.setUserUuid(orderItem.getUserUuid())
//	        	.setOrderUuid(orderItem.getOrderUuid())
//	        	.setOrderNo(orderItem.getOrderNo())
//				.setSkuUuid(orderItem.getSkuUuid())
//				.setQuantity(orderItem.getQuantity())
//				.setAmt(orderItem.getAmt())
//				.setAmtSku(orderItem.getAmtSku())
//				.setAmtShipping(orderItem.getAmtShipping())
//				.setAmtProductCoupon(orderItem.getAmtSkuCoupon())
//				.setRetailerUuid(orderItem.getRetailerUuid())
//				.setNewUser(orderItem.getNewUser())
//				.setPlatform(orderItem.getPlatform())
//				.setServer(RequestUtil.getSeverAddress())
//				.sendToMq();
//		} catch(Exception e) {
//			log.error("logAction OrderItemDTO failed", e);
//		}
//	}
//}
